package com.sifang.controller;

import com.sifang.domain.DriverSkill;
import com.sifang.domain.Result;
import com.sifang.service.IDriverService;
import com.sifang.service.IDriverSkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/driver")
public class DriverSkillController {

    @Autowired
    private IDriverSkillService iDriverSkillService;

    //驾驶员技能
    @GetMapping("/skill")
    public Result<DriverSkill> list(Integer id){
        DriverSkill ds = iDriverSkillService.list(id);
        return Result.success(ds);
    }

}
